package com.dianping.cat.configuration.server.entity;

import com.dianping.cat.configuration.server.BaseEntity;
import com.dianping.cat.configuration.server.IVisitor;







public class Domain
  extends BaseEntity<Domain>
{
  private String m_name;
  private Integer m_urlThreshold;
  private Integer m_sqlThreshold;
  private Integer m_serviceThreshold;

  public Domain() {}

/*  22 */   public Domain(String name) { this.m_name = name; }




/*  27 */   public void accept(IVisitor visitor) { visitor.visitDomain(this); }



  public boolean equals(Object obj) {
    if (obj instanceof Domain) {
/*  33 */       Domain _o = (Domain)obj;

/*  35 */       if (!equals(getName(), _o.getName())) {
        return false;
      }

/*  39 */       return true;
    }

/*  42 */     return false;
  }


/*  46 */   public String getName() { return this.m_name; }



/*  50 */   public Integer getServiceThreshold() { return this.m_serviceThreshold; }



/*  54 */   public Integer getSqlThreshold() { return this.m_sqlThreshold; }



/*  58 */   public Integer getUrlThreshold() { return this.m_urlThreshold; }


/*     */



  public void mergeAttributes(Domain other) {
/*  72 */     assertAttributeEquals(other, "domain", "name", this.m_name, other.getName());

/*  74 */     if (other.getUrlThreshold() != null) {
/*  75 */       this.m_urlThreshold = other.getUrlThreshold();
    }

    if (other.getSqlThreshold() != null) {
/*  79 */       this.m_sqlThreshold = other.getSqlThreshold();
    }

/*  82 */     if (other.getServiceThreshold() != null) {
/*  83 */       this.m_serviceThreshold = other.getServiceThreshold();
    }
  }

  public Domain setName(String name) {
/*  88 */     this.m_name = name;
/*  89 */     return this;
  }

  public Domain setServiceThreshold(Integer serviceThreshold) {
/*  93 */     this.m_serviceThreshold = serviceThreshold;
/*  94 */     return this;
  }

  public Domain setSqlThreshold(Integer sqlThreshold) {
/*  98 */     this.m_sqlThreshold = sqlThreshold;
/*  99 */     return this;
  }

  public Domain setUrlThreshold(Integer urlThreshold) {
/* 103 */     this.m_urlThreshold = urlThreshold;
/* 104 */     return this;
  }
}


/* Location:              /Users/hanfei/Documents/apache-tomcat-9.0.24/webapps/cat/WEB-INF/lib/cat-core-3.0.0.jar!/com/dianping/cat/configuration/server/entity/Domain.class
 * Java compiler version: 7 (51.0)
 * JD-Core Version:       1.0.7
 */